Improve printer distinction for option retrieval
authorMichael Weghorn <m.weghorn@posteo.de>
Thu, 13 Aug 2015 20:31:28 +0000 (22:31 +0200)
committerMarek Kasik <mkasik@redhat.com>
Fri, 11 Sep 2015 13:19:35 +0000 (15:19 +0200)
commit838391e420a0d2bf274e63a590791257ba655cbf
tree719ff5751dcc3d1bee6bb82a36fd69005515797c
parent3ffef0ca03993cb6995948183b250c8c59d9944c
Improve printer distinction for option retrieval

In order to retrieve the user options for a printer, the respective
printer name is used.
This fixes the comparison of printer names to avoid that the options of
another printer are accidently read whose name starts with the same
letters, but is longer (e.g. "myprinterlongername" instead of
"myprinter").

This fixes Bug 753628.
modules/printbackends/cups/gtkprintbackendcups.c